#include <iostream>
#include <string>
#include "markshop.h"

void ShopMark::InitNode()
{
    head=new Snode;
    head->id=0;
    head->name="";
    head->next=NULL;
    
}
ShopMark::ShopMark(struct Snode * ssnode)
{
    head=ssnode;
   
}
void ShopMark::DeleteNode(ut *t)
{
    return ;
}
void ShopMark::AddNode()
{  
    Snode * pointer =head;
    while(pointer!=NULL)
    {
        pointer=pointer->next;
    }
    pointer=new Snode;
    cin>>pointer->id;
    cin>>pointer->name;
    return ;
}

void ShopMark::QueryAllNode()
{  struct  Snode * pointer;
     pointer=head;
     while(pointer!=NULL)
    {
        pointer=pointer->next;
        cout<<pointer->id;
        cout<<pointer->name;
    }
    return ;
}
